<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <meta charset="UTF-8">
    <title>登陆</title>
    <style>
        .btn-default {
            color: #f5f5f5;
            background-color: #2269a7;
            border-color: #ccc;
        }
        .container {
            padding-right: 15px;
            padding-left: 15px;
            margin: 100px auto;
        }
        .form-control {
            display: block;
            width: 500px;
            height: 34px;
            padding: 6px 12px;
            font-size: 14px;
            line-height: 1.42857143;
            color: #555;
            background-color: #fff;
            background-image: none;
            border: 1px solid #ccc;
            border-radius: 4px;
            -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
            -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
            transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
        }
        h3{
            color: #2269a7;
        }

    </style>
</head>
<body>
<div class="center">
    <div class="container">
        <form th:action="@{/add}" method="post">
            <div class="form-group">

                <div>
                    <p>
                        <!--                <img th:src="@{/img/ioc.jpg}">-->
                        <span class="glyphicon glyphicon-home">
                <h3>添加球星</h3>
                </div>
                <label>名字</label>
                <input type="text" class="form-control"  name="name" placeholder="名字" required>

                <label>邮箱</label>
                <input type="text" class="form-control" name="email" placeholder="邮箱" required>

                <label>号码</label>
                <input type="text" class="form-control" name="id" placeholder="号码" required>

                <label>生日</label>
                <input type="text" class="form-control" name="brithday" placeholder="出生日期" required>
            </div>

            <div class="radio">
                <label>
                    <input type="radio" name="gender" value="1"> 男
                </label>
                <label>
                    <input type="radio" name="gender" value="0"> 女
                </label>
            </div>
          <div>
               <label>俱乐部</label>
              <select name="department.id" class="form-control">
                  <option class="option" th:each="deps:${departments}" th:text="${deps.getDepartmentName()}" th:value="${deps.getId()}"></option>
              </select>
          </div>
            <p>

            </p>
            <button type="submit" class="btn btn-default">提交</button>
        </form>
    </div>
</div>
</body>
</html>